<?
	
	$pageid="5";
	$accessid="a00";
	
	
	require("required/dbconnect.php"); 
	
	require("required/function.php");
	checkAccess("allow_user_management",1);
	$id=$_POST['id'];
	$branch_name=mysql_escape_string($_POST['branch_name']);
	$address=mysql_escape_string($_POST['address']);
	$address=str_replace("\\n","<br>",$address);
	$tel=$_POST['tel'];
	$fax=$_POST['fax'];

	

	$update=mysql_query("update os_branch set branch_name='$branch_name',address='$address',tel='$tel',fax='$fax' where id=$id")or die(mysql_error());
	
	header("Location:branch.php?action=3");
?>
